home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Magazin/MacEasy 11
/
Mac Magazin and MacEasy Magazine CD - Issue 11.iso
/
Sharewarebibliothek
/
Entwickler
/
nShell-Pro
/
bin
/
yesno
/
yesno.rsrc
/
TEXT_16000_man general.txt
< prev
next >
Wrap
Text File
|
1994-11-27
|
539b
|
29 lines
yesno - ask a yes or no question
SYNOPSIS
yesno [-i] [string...]
DESCRIPTION
This command prompts the user for a “y” or “n” response. The string parameters are concatenated and may not exceed a total of 255 characters. If the -i option is used the prompt is read from standard input.
OPTIONS
-i Read the prompt from standard input
RETURN CODES
<0 Error
0 The user selected “y” or “Y”
1 The user selected “n” or “N”
EXAMPLES
% yesno
(y/n): y
%
% yesno “Is this right”
Is this right (y/n): y
%